<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            overflow: hidden;
            background-color: #464853;
        }

        .bg div[class^="bg"] {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 3840px;
            animation: bg 50s linear 0s infinite normal forwards;
        }

        .bg1 {
            z-index: 2;
            height: 336px;
            background: url(images/bg1.png) repeat-x;
        }

        .bg div.bg2 {
            z-index: 1;
            height: 569px;
            background: url(images/bg2.png) repeat-x;
            animation: bg 50s ease-in-out 0s infinite normal forwards;
        }

        @keyframes bg {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: -3840px 0;
            }
        }

        .bears {
            position: absolute;
            bottom: 50px;
            left: 0;
            z-index: 3;
            width: 200px;
            height: 100px;
            background: url(images/bear.png) no-repeat;
            /* 元素可以添加多个动画，用逗号分开 */
            /* animation-name: bear;
            animation-duration: 1s;
            animation-timing-function: steps(8);
            animation-iteration-count: infinite; */
            animation: bear 1s steps(8) infinite, move 3s forwards;
        }

        @keyframes bear {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: -1600px 0;
            }
        }

        @keyframes move {
            0% {
                left: 0;
            }

            100% {
                left: 50%;
                transform: translateX(-50%);
            }
        }

        h5 {
            font-size: 18px;
            font-weight: 400;
            text-align: center;
            color: aliceblue;
        }

        a {
            text-decoration: none;
        }

        a input {
            display: block;
            width: 80px;
            height: 30px;
            margin: 10px auto;
            font-size: 16px;

        }
    </style>
</head>

<body>
    <h5>
        还没做,看看别的(比如手机，注册)
    </h5>
    <a href="index.html"><input type="button" value="返回主页"></a>
    <div class="bg">
        <div class="bg2"></div>
        <div class="bg1"></div>
    </div>
    <div class="bears"></div>
</body>

</html>